home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / dos6nts.zip / PD0321.TXT next >
Text File  |  1993-06-22  |  8KB  |  150 lines

  1. ======================================================================
  2.   Microsoft(R) Product Support Services Application Note (Text File)
  3.             PD0321: REMOVING NON-DOS PARTITIONS WITH DEBUG
  4. ======================================================================
  5.                                                    Revision Date: 4/93
  6.                                                       No Disk Included
  7.  
  8. The following information applies to Microsoft MS-DOS(R) versions 3.2,
  9. 3.21, 3.3, 4.0, 4.01, 5.0, and 6.0.
  10.  
  11.  --------------------------------------------------------------------
  12. | INFORMATION PROVIDED IN THIS DOCUMENT AND ANY SOFTWARE THAT MAY    |
  13. | ACCOMPANY THIS DOCUMENT (collectively referred to as an            |
  14. | Application Note) IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY      |
  15. | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO    |
  16. | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A     |
  17. | PARTICULAR PURPOSE. The user assumes the entire risk as to the     |
  18. | accuracy and the use of this Application Note. This Application    |
  19. | Note may be copied and distributed subject to the following        |
  20. | conditions: 1) All text must be copied without modification and    |
  21. | all pages must be included; 2) If software is included, all files  |
  22. | on the disk(s) must be copied without modification [the MS-DOS(R)  |
  23. | utility DISKCOPY is appropriate for this purpose]; 3) All          |
  24. | components of this Application Note must be distributed together;  |
  25. | and 4) This Application Note may not be distributed for profit.    |
  26. |                                                                    |
  27. | Copyright 1990-1993 Microsoft Corporation. All Rights Reserved.    |
  28. | Microsoft and MS-DOS are registered trademarks and Windows         |
  29. | is a trademark of Microsoft Corporation.                           |
  30.  --------------------------------------------------------------------
  31.  
  32. INTRODUCTION
  33. ============
  34.  
  35. There are currently several different versions of MS-DOS in the
  36. personal-computer environment, both in the OEM-licensed versions and
  37. in the Microsoft packaged-product versions. The hard-disk-management
  38. capabilities of MS-DOS vary from one version to another. For example,
  39. MS-DOS versions 3.2 and 3.21 can address a single hard-disk partition
  40. of up to 32 megabytes (MB); MS-DOS version 3.3 can address multiple
  41. hard-disk partitions, with a primary DOS partition of up to 32 MB and
  42. an extended DOS partition containing logical drives of up to 32 MB
  43. each; and MS-DOS versions 4.0, 4.01, 5.0, and 6.0 can address multiple
  44. hard-disk partitions with sizes up to 2 gigabytes (GB).
  45.  
  46. For those using versions of MS-DOS that have lesser levels of hard-
  47. disk support, such as MS-DOS versions 3.2 and 3.21, there are a number
  48. of third-party hard-disk-management software packages that allow
  49. MS-DOS to access multiple partitions and/or partitions in excess of 32
  50. MB. However, these third-party packages may use non-DOS constructs to
  51. assist in managing the hard disk, possibly including non-DOS
  52. partitions. These non-DOS constructs can cause problems when you
  53. upgrade to later versions of MS-DOS because versions of MS-DOS earlier
  54. than 5.0 assume that non-DOS constructs are owned by another operating
  55. system and, therefore, do not use, delete, or change non-DOS
  56. partitions or other non-DOS constructs in any way.
  57.  
  58.   WARNING: Some computers require the use of third-party hard-disk-
  59.   partitioning software because the system ROM BIOS does not fully
  60.   support the drive parameters of the hard disk that is being used or
  61.   because the hard disk has more than 1024 data cylinders. If you are
  62.   unsure if your system supports your hard disk, consult your hardware
  63.   manufacturer or the manufacturer of your partitioning software
  64.   before proceeding.
  65.  
  66. USING DEBUG TO REMOVE A NON-DOS PARTITION
  67. =========================================
  68.  
  69. The Debug script below, used with the MS-DOS Debug program, deletes
  70. non-DOS partitions when you upgrade to a new version of MS-DOS,
  71. enabling the entire hard disk to be used by MS-DOS. It does so,
  72. however, by clearing out the entire partition table on the hard disk,
  73. which results in the DELETION OF ALL PARTITIONS on the hard disk. You
  74. need to use this method if your current version of MS-DOS cannot
  75. delete non-DOS partitions.
  76.  
  77.    WARNING: Because all data on your hard disk will be destroyed by
  78.    this procedure, you must back up your hard disk before using this
  79.    Debug script.
  80.  
  81. There are two ways to use the following Debug script:
  82.  
  83.  - Run Debug and type the Debug commands from the center column of
  84.    Table 1 at the corresponding Debug prompt. (The left column of the
  85.    table shows the prompts that are displayed by Debug. You do not
  86.    need to type the comments in the right column.)
  87.    
  88.    -or-
  89.  
  90.  - Type the command in the center column of Table 1 into a file using
  91.    a text editor such as MS-DOS Editor and then use input redirection
  92.    to feed the resulting file into Debug. For example, if you typed
  93.    the commands into a file called HDPART.SCR, you would clear your
  94.    partition table by typing the following at the MS-DOS command
  95.    prompt and then pressing ENTER:
  96.       
  97.       debug < hdpart.scr
  98.  
  99.        Table 1: Debug Script to Erase Hard-Disk Partition Table
  100.        ------------------------------------------------------------
  101.        
  102.        Debug       Enter Debug      Comments
  103.        Prompts     Commands
  104.        ------------------------------------------------------------
  105.        -           A 100            Assemble from CS:0100
  106.        nnnn:010    INT 13           Call interrupt 13
  107.        0
  108.        nnnn:010    press the        (nnnn in the segment address).
  109.        2           ENTER key
  110.        -           RAX              Replace AX register.
  111.        AX 0000                      
  112.        :           0301             Write on sector.
  113.        -           RBX              Replace BX register.
  114.        BX 0000                      
  115.        :           0200             Start from ES:200
  116.        -           F 200 L 200 0    We want to write zeros.
  117.        -           RCX              Replace CX register.
  118.        CX 0000                      
  119.        :           0001             Cylinder, 0, sector 1.
  120.        -           RDX              Replace DX register.
  121.        DX 0000                      
  122.        :           0080             First physical hard disk, head
  123.                                     0. (Substitute 0081 for this
  124.                                     entry if clearing the table on
  125.                                     the second physical hard disk,
  126.                                     0082 if clearing the third
  127.                                     physical hard disk, and so
  128.                                     forth).
  129.        -           P                Proceed (Debug will display
  130.                                     several lines of information).
  131.        -           Q                Quit Debug.
  132.  
  133. This script completely clears the partition table on your hard disk,
  134. preparing the hard disk for repartitioning using the MS-DOS Fdisk
  135. program. (When you run Fdisk for the first time after using this
  136. procedure and before reinstalling MS-DOS, the message "No partitions
  137. defined" should be displayed if the partition deletion procedure was
  138. successful.) For more information about using Fdisk, see the
  139. "Microsoft MS-DOS User's Guide and Reference" for version 3.2, 3.21,
  140. 3.3, 4.0, 4.01, or 5.0, or the "Microsoft MS-DOS User's Guide" for
  141. version 6.0.
  142.  
  143. Non-DOS partitions on your hard disk are also erased if you perform a
  144. low-level format. Consult your hardware manufacturer for specific
  145. instructions on performing a low-level format on your hard disk.
  146.  
  147.   WARNING: Performing a low-level format will completely erase all
  148.   data on your hard disk, including all defined partitions.
  149.  
  150.